﻿
@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>
<input id="search" />
<h2>Két Quản</h2>
<div id="ketqua"></div>

@section scripts{

    <script>
        $(function () {
            $("#search").autocomplete(function () {
                search = $(this).val();
                $.ajax({
                    url: "/SearchAuto/Search",
                    data: { Name: search },
                    success: function (response) {
                        $("#ketqua").html(response);
                    }
                });
            });
        });
    </script>
}